package tantque;

public class Etat1 {

    private IFermeture E,  depart,  arrivee,  direction;
    private int dep,  arr,  dir;
    private int[] CASES;

    public Etat1() {


        depart = new IFermeture() {

            @Override
            public void executer() {
                if (dep < 64) {
                    dep++;
                }

            }
        };
        direction = new IFermeture() {

            @Override
            public void executer() {
                if (dir < 16) {
                    dir++;
                }
            }
        };

        arrivee = new IFermeture() {

            @Override
            public void executer() {
                if (CASES[arr + dir] == -1) {
                    arr = arr + dir;
                }
            }
        };


        E = new IFermeture() {

            @Override
            public void executer() {
//                System.out.println();
            }
        };

        WhileThree1.getInstance(depart, direction, arrivee, E);
    }
}












